home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLR / glrduck / glrduckMainWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-11  |  2.7 KB  |  114 lines

  1. //////////////////////////////////////////////////////////////
  2. //
  3. // Header file for glrduckMainWindow.c++
  4. //
  5. //    This class is a subclass of VkWindow
  6. //
  7. // Normally, very little in this file should need to be changed.
  8. // Create/add/modify menus using RapidApp.
  9. //
  10. // Restrict changes to those sections between
  11. // the "//--- Start/End editable code block" markers
  12. // Doing so will allow you to make changes using RapidApp
  13. // without losing any changes you may have made manually
  14. //
  15. //////////////////////////////////////////////////////////////
  16. #ifndef GLRDUCKMAINWINDOW_H
  17. #define GLRDUCKMAINWINDOW_H
  18. #include <Vk/VkWindow.h>
  19.  
  20. class VkMenuItem;
  21. class VkMenuToggle;
  22. class VkMenuConfirmFirstAction;
  23. class VkSubMenu;
  24. class VkRadioSubMenu;
  25. class SoSeparator;
  26. class SoComplexity;
  27. class SoRotationXYZ;
  28. class SoXtGLRRenderArea;
  29.  
  30. //---- Start editable code block: headers and declarations
  31. #include <Inventor/SbBasic.h>
  32. //---- End editable code block: headers and declarations
  33.  
  34.  
  35. //---- glrduckMainWindow class declaration
  36.  
  37. class glrduckMainWindow: public VkWindow {
  38.  
  39.   public:
  40.  
  41.     glrduckMainWindow( const char * name, 
  42.             ArgList args = NULL,
  43.             Cardinal argCount = 0 );
  44.     ~glrduckMainWindow();
  45.     const char *className();
  46.     virtual Boolean okToQuit();
  47.  
  48.     //---- Start editable code block: glrduckMainWindow public
  49.     static SbBool myEventCB(void *userData, XAnyEvent *event);
  50.  
  51.  
  52.     //---- End editable code block: glrduckMainWindow public
  53.  
  54.  
  55.   protected:
  56.  
  57.  
  58.  
  59.     // Classes created by this class
  60.  
  61.     class SoXtGLRRenderArea *_render;
  62.  
  63.  
  64.     // Widgets created by this class
  65.  
  66.  
  67.     // Menu items created by this class
  68.     VkSubMenu  *_filePane;
  69.     VkMenuItem *_exitButton;
  70.     VkSubMenu  *_viewPane;
  71.     VkMenuItem *_viewControl1;
  72.  
  73.     // Member functions called from callbacks
  74.  
  75.     virtual void quit ( Widget, XtPointer );
  76.  
  77.  
  78.     //---- Start editable code block: glrduckMainWindow protected
  79.     SbBool myRealEventCB(XAnyEvent *anyevent);
  80.     void motionStart(int x, int y);
  81.     void motion(int x, int);
  82.     void motionStop();
  83.     //---- End editable code block: glrduckMainWindow protected
  84.  
  85.  
  86.   private:
  87.  
  88.  
  89.     // Callbacks to interface with Motif
  90.  
  91.     static void quitCallback ( Widget, XtPointer, XtPointer );
  92.  
  93.     static String  _defaultglrduckMainWindowResources[];
  94.  
  95.  
  96.     //---- Start editable code block: glrduckMainWindow private
  97.     SoSeparator       *_root;
  98.     SoComplexity      *_complexity;
  99.     SoRotationXYZ     *_duckRotXYZ;
  100.  
  101.     short int          _moving;
  102.     int                _begin;
  103.     float              _angle;
  104.     //---- End editable code block: glrduckMainWindow private
  105.  
  106.  
  107. };
  108. //---- Start editable code block: End of generated code
  109.  
  110.  
  111. //---- End editable code block: End of generated code
  112.  
  113. #endif
  114.